<context-param> <param-name>org.picketbox.authentication</param-name> <param-value>FORM</param-value> </context-param>
Before enabling HTTP security in your application, you need to define how users should supply their credentials. PicketBox is shipped with implementations for the most common HTTP Authentication Schemes:
HTTP FORM
HTTP BASIC
HTTP DIGEST
HTTP CLIENT_CERT
The easiest way to configure one of the supported authentication schemes is define it in your web.xml a Servlet Context Init Parameter called org.picketbox.authentication. The examples bellow show you how to configure each one of the built-in authentication schemes:
<context-param> <param-name>org.picketbox.authentication</param-name> <param-value>FORM</param-value> </context-param>
<context-param> <param-name>org.picketbox.authentication</param-name> <param-value>BASIC</param-value> </context-param>
<context-param> <param-name>org.picketbox.authentication</param-name> <param-value>DIGEST</param-value> </context-param>
<context-param> <param-name>org.picketbox.authentication</param-name> <param-value>CLIENT_CERT</param-value> </context-param>